﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    xmlns:axmedia="clr-namespace:Axelerate.Silverlight3D.Media"
    xmlns:axmedia3D="clr-namespace:Axelerate.Silverlight3D.Media.Media3D"
    xmlns:axc="clr-namespace:Axelerate.Silverlight3D.Controls"
    >
  <Style TargetType="axc:Viewport3D">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="axc:Viewport3D">
          <Grid x:Name="rootElement"
                  Background="{TemplateBinding Background}"
                   Height="{TemplateBinding Height}"
                   Width="{TemplateBinding Width}"
                   Clip="{TemplateBinding Clip}"
                   HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                   VerticalAlignment="{TemplateBinding VerticalAlignment}"
                   Margin="{TemplateBinding Margin}"
                   MaxHeight="{TemplateBinding MaxHeight}"
                   MaxWidth="{TemplateBinding MaxWidth}"
                   MinHeight="{TemplateBinding MinHeight}"
                   MinWidth="{TemplateBinding MinWidth}"
                   Opacity="{TemplateBinding Opacity}"
                   Visibility="{TemplateBinding Visibility}"
                  >
            <!-- Content presenter for hosting the content -->
            <ContentPresenter  x:Name="renderContainer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
          </Grid>
       </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  
</ResourceDictionary>